Skip to content

Cache control parsing function#28

Open
Nottezz wants to merge 6 commits intomainfrom
cache-control-parsing
Open

Cache control parsing function#28
Nottezz wants to merge 6 commits intomainfrom
cache-control-parsing

Conversation

@Nottezz
Copy link
Collaborator

@Nottezz Nottezz commented Jan 19, 2026

closing todo: add parsing cache-control function

@Nottezz Nottezz requested a review from chud0 January 19, 2026 08:56
@Nottezz Nottezz self-assigned this Jan 19, 2026
@Nottezz Nottezz changed the title cache-control-parsing Cache control parsing function Jan 19, 2026
else:
directives[part.lower()] = True

return CacheControlDirectives.model_validate(directives)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mypy без этого сыпит такими ошибками:

fast_cache_middleware/controller.py:133: error: Argument 1 to "CacheControlDirectives" has incompatible type "**dict[str, str | int | bool | None]"; expected "bool"  [arg-type]
fast_cache_middleware/controller.py:133: error: Argument 1 to "CacheControlDirectives" has incompatible type "**dict[str, str | int | bool | None]"; expected "int | None"  [arg-type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments